
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
Declaring variables and external functions</TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="pbugp72.htm">Previous</A>&nbsp;&nbsp;<A HREF="pbugp74.htm" >Next</A>
<!-- End Header -->
<A NAME="BABECCFE"></A><h1>Declaring variables and external functions</h1>
<A NAME="TI2113"></A><p>The default layout in the Application, Window, and User Object
painters includes a Script view set up to declare variables. Keeping
a separate Script view open makes it easy to declare any variables
or external functions you need to use in your code without closing
and compiling the script. </p>
<A NAME="TI2114"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To declare variables and external functions:</p>
<ol><li class=fi><p>Select [Declare] from
the first list in the Script view.</p></li>
<li class=ds><p>Select the variable type (instance, shared, or
global) or the function type (local or global) from the second list.</p></li>
<li class=ds><p>Type the declaration in the Script view.</p></li></ol>
<br><A NAME="TI2115"></A><p>For more information about declaring variables, see the <i>PowerScript Reference</i>
.
For more information about declaring and using external functions, see
the <i>PowerScript Reference</i>
 and <i>Application
Techniques</i>
.</p>

